import Vue from'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
//3>.创建路由的实例对象
import Shouye from "../components/shouye.vue"
import Wode from "../components/wode.vue"
import Liulan from "../components/tuijian.vue"
import Fatie from "../components/fatie.vue"
import Huida from "../components/huida.vue"
import Kaixing from "../components/kaixing.vue"
import Xiaoxi from "../components/xiaoxi.vue"
import Shuju from "../components/shuju.vue"
import Search from "../components/search.vue"
import Tianjia from "../components/tianjia.vue"
import Bianji from "../components/bianji.vue"
import Jieguo from "../components/jieguo.vue"
import Wenzhang from "../components/wenzhang.vue"
import Denglu from "../components/denglu.vue"
import Zhuce from "../components/zhuce.vue"
// import Tuijian from "../components/tuijian.vue"
const router=new VueRouter({
  // mode:'history',
  routes:[
    {path:"/",component:Shouye},
    {path:"/denglu",component:Denglu},
    {path:"/zhuce",component:Zhuce},
    {path:"/shouye",component:Shouye},
    {path:"/wode",component:Wode},
    {path:"/liulan",component:Liulan},
    {path:"/fatie",component:Fatie},
    {path:"/huida",component:Huida},
    {path:"/kaixing",component:Kaixing},
    {path:"/xiaoxi",component:Xiaoxi},
    {path:"/shuju",component:Shuju},
    {path:"/search",component:Search},
    {path:"/tianjia",component:Tianjia},
    {path:"/bianji",component:Bianji},
    {path:"/jieguo/:search",component:Jieguo},
    {path:"/wenzhang/:id",component:Wenzhang},
    // {path:"/wenzhang/:id",component:Wenzhang},
  ]
})
//4>.向外共享路由的实例对象
export default router
